home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / logdaemon-2 / lib / Makefile < prev    next >
Encoding:
Makefile  |  1993-03-31  |  1.3 KB  |  45 lines

  1. #
  2. # Copyright (c) 1988 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation, advertising
  8. # materials, and other materials related to such redistribution and
  9. # use acknowledge that the software was developed by the University
  10. # of California, Berkeley.  The name of the University may not be
  11. # used to endorse or promote products derived from this software
  12. # without specific prior written permission.  THIS SOFTWARE IS PROVIDED
  13. # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  14. # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
  15. # FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # @(#)Makefile    5.2 (Berkeley) 9/20/88
  18. #
  19.  
  20. CFLAGS    = -O
  21. SYSVOBJ    = stream_pty.o utmpx_init.o utmpx_login.o utmpx_logout.o
  22. BSD4OBJ    = login.o logout.o logwtmp.o
  23. RANLIB    = ranlib
  24. EXTRA    =
  25.  
  26. what:
  27.     @echo This Makefile is not to be invoked directly 1>&2; exit 1
  28.  
  29. 43bsd ultrix4 sunos4:
  30.     make OBJS="$(BSD4OBJ) $(EXTRA)" CFLAGS="$(CFLAGS)" \
  31.         RANLIB=$(RANLIB) libutil.a
  32.  
  33. sysv4 sunos5:
  34.     make OBJS="$(SYSVOBJ) $(EXTRA)" CFLAGS="$(CFLAGS) -DUSE_TERMIOS_H"
  35.         RANLIB=echo libutil.a
  36.  
  37. libutil.a: ${OBJS}
  38.     ar rv $@ $?
  39.     $(RANLIB) $@
  40.  
  41. clean:
  42.     rm -f *.o libutil.a
  43.  
  44. stream_pty: tiocpkt.h
  45.